package com.cbgolf.oa.activity.bill;

import android.os.Bundle;
import android.support.annotation.Nullable;

import com.cbgolf.oa.R;
import com.cbgolf.oa.base.BaseActivity;
import com.cbgolf.oa.model.BillModel;
import com.cbgolf.oa.presenter.IPresenterImp;
import com.cbgolf.oa.views.BillingView;

/**
 * @author Created by lq on 2017/11/2.
 */

public class BillingSuccessActivity extends BaseActivity implements IPresenterImp {

  private BillingView view;
  private BillModel model;

  @Override
  protected void onCreate(@Nullable Bundle savedInstanceState) {
    super.onCreate(savedInstanceState);
    setContentView(R.layout.a_billingsuccess);
  }

  @Override
  protected void findViews() {
    view = new BillingView(this, this);
    model = new BillModel(this, this);
  }

  @Override
  public String getActivityTitle() {
    return "开单成功";
  }

  @Override
  public void back() {
    finish();
  }

  @Override
  public void showProgress() {
    view.showProgress();
  }

  @Override
  public void stopProgress() {
    view.stopProgress();
  }

  @Override
  public void getDataFail(String msg) {
    view.getDataFail(msg);
  }

  @Override
  public void getDataSuccess(Object obj) {
    view.getDataSuccess(obj);
  }

  @Override
  public void getDataFail(String msg, int code) {
    view.getDataFail(msg, code);
  }

}
